package test.utils;

import org.apache.tomcat.util.security.MD5Encoder;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/6/8 17:03
 * @ Description:
 */
public class FileMD5Util {
    public static String getFileMD5(String originalFilename) {
        return MD5Encoder.encode(originalFilename.getBytes());
    }
}
